package com.jwsoft.manager.common.enums;
/**
 * @author chenzh
 * @date 2022-03-10
 * @description
 **/
public enum EnrollPreTypeEnum {
    ycj("1", "学校预采集导入"),
    dj("2", "家长准新生登记或修改"),
    lr("3", "学校单个人员录入"),
    gl("4", "管理员录入或修改"),
    tstd("5","特殊通道人员管理"),
    xxlr("6", "学校线下报名录入"),
    ;

    private String type;
    private String name;

    EnrollPreTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static EnrollPreTypeEnum getByType(String type) {

        for (EnrollPreTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
